/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package org.opensource.jdom.taggen.html.tag;

import org.opensource.jdom.taggen.html.CommonAttributes;

/**
 *
 * A multi-row text area form element. The initial value of the text area can be
 * placed in between the opening and closing tags.
 *
 * <h2>Example</h2> <pre><code class="html">
 *&lt;form action="somescript.php" /&gt;
 *	&lt;p&gt;Your address&lt;/p&gt;
 *	&lt;div&gt;<strong>&lt;textarea name="address"cols="30" rows="4"&gt;
 * &lt;/textarea&gt;</strong>&lt;/div&gt;
 *	&lt;div&gt;&lt;input type="submit" /&gt;&lt;/div&gt;
 *&lt;/form&gt;
 *</code></pre>
 *
 * @see Input
 * @see Form
 * @see Select
 * @author sergio.valdez
 */
public class Textarea extends CommonAttributes{

    /**
     * is used to define the number of viewable rows.
     */
    private String rows;
    /**
     * is used to specify the number of viewable columns.
     */
    private String cols;
    /**
     * can be used so that the value of the element can be processed.
     */
    private String cssName;
    /**
     * can be used to disable the element. It must be used in the format
     * disabled="disabled".
     */
    private boolean disabled;
    /**
     * can be used to disable the element. It must be used in the format
     * disabled="disabled".
     */
    private boolean readonly;
    /**
     * can be used to associate a keyboard shortcut to the element.
     */
    private String accesskey;
    /**
     * can be used to specify where the element appears in the tab order of the
     * page.
     */
    private String tabindex;

    public Textarea(String rows, String cols) {
        this.rows = rows;
        this.cols = cols;
    }

}
